using System;
using System.Collections.Generic;

namespace CMS.Core.Domain
{
    /// <summary>
    /// Email object for NHibernate mapped table Email.
    /// </summary>
    [Serializable]
    public class Email : DomainObject<System.Int32>
    {
        private System.String _MaDonThu;
        private System.String _DiaChiEmail;
        private DonThu _MaDonThuLookup;

        public Email()
        {
        }

        public Email(System.Int32 id)
        {
            base.ID = id;
        }

         public virtual System.String MaDonThu {
             get { return _MaDonThu; }
             set { _MaDonThu = value;}
         }

         public virtual System.String DiaChiEmail {
             get { return _DiaChiEmail; }
             set { _DiaChiEmail = value; }
         }

        public virtual DonThu MaDonThuLookup
        {
            get { return _MaDonThuLookup; }
            set { _MaDonThuLookup = value; }
        }

        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

     }
}
